Static type checking without downcast operator
نویسندگان
چکیده
In the last couple of years several dynamically-typed, object-oriented programming languages have been equipped with optional static type checkers. This typically requires these to be extended a downcast operator, which is common operator in statically-typed but not dynamically-typed languages. Our objective investigate an approach for checking that does require such additional operator. We systematically weaken rules avoid reporting errors can resolved using operators. leads similar quasi-static typing enables make annotations stricter gradual way. These applied by interpreting dynamic as top subtype relation. Based on ideas we implemented checker language POOSL without introducing Practical experiences this indicate it useful early validation.
منابع مشابه
Static and Dynamic Type Checking
The purpose of a type checker is to prevent an incorrect operation from being performed. A static type checker does this by stopping the compiler from generating a program with type errors, a dynamic type checker halts the program as it is about to make a type error. It is clearly useless to have a dynamic type checking system for a program which is to be produced, distributed and used by anyon...
متن کاملStatic Type-checking in Object-Oriented Databases
If a precise definition of object-oriented programming languages is elusive, the confusion surrounding objectoriented databases is even greater. Rather than attempt to give a comprehensive definition of the subject we shall concentrate on a few properties of object-oriented databases that we believe to be of central importance. We want to show that these properties can be concisely captured in ...
متن کاملStatic Type Checking of Model Transformation Programs
Model transformation is seen as a promising approach to automate software development and verification, thus improving quality and reducing production costs significantly. However, errors of transformation programs can propagate into the generated artifacts complicating the detection of errors. The current paper proposes a static type checking approach for early detection of typing errors of pa...
متن کاملTowards Static Type-checking for Jolie
Static verification of source code correctness is a major milestone towards software reliability. The dynamic type system of the Jolie programming language, at the moment, allows avoidable run-time errors. A static type system for the language has been exhaustively and formally defined on paper, but still lacks an implementation. In this paper, we describe our steps toward a prototypical implem...
متن کاملType inference and strong static type checking for Promela
The SPIN model checker and its specification language Promela have been used extensively in industry and academia to check logical properties of distributed algorithms and protocols. Model checking with SPIN involves reasoning about a system via an abstract Promela specification, thus the technique depends critically on the soundness of this specification. Promela includes a rich set of data ty...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Information Processing Letters
سال: 2022
ISSN: ['1872-6119', '0020-0190']
DOI: https://doi.org/10.1016/j.ipl.2022.106285